package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.SrvConttypeMapper;
import com.ruoyi.order.domain.SrvConttype;
import com.ruoyi.order.service.ISrvConttypeService;

/**
 * 内容分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-29
 */
@Service
public class SrvConttypeServiceImpl implements ISrvConttypeService 
{
    @Autowired
    private SrvConttypeMapper srvConttypeMapper;

    /**
     * 查询内容分类
     * 
     * @param srvCtcode 内容分类ID
     * @return 内容分类
     */
    @Override
    public SrvConttype selectSrvConttypeById(String srvCtcode)
    {
        return srvConttypeMapper.selectSrvConttypeById(srvCtcode);
    }

    /**
     * 查询内容分类列表
     * 
     * @param srvConttype 内容分类
     * @return 内容分类
     */
    @Override
    public List<SrvConttype> selectSrvConttypeList(SrvConttype srvConttype)
    {
        return srvConttypeMapper.selectSrvConttypeList(srvConttype);
    }

    /**
     * 新增内容分类
     * 
     * @param srvConttype 内容分类
     * @return 结果
     */
    @Override
    public int insertSrvConttype(SrvConttype srvConttype)
    {
        return srvConttypeMapper.insertSrvConttype(srvConttype);
    }

    /**
     * 修改内容分类
     * 
     * @param srvConttype 内容分类
     * @return 结果
     */
    @Override
    public int updateSrvConttype(SrvConttype srvConttype)
    {
        return srvConttypeMapper.updateSrvConttype(srvConttype);
    }

    /**
     * 批量删除内容分类
     * 
     * @param srvCtcodes 需要删除的内容分类ID
     * @return 结果
     */
    @Override
    public int deleteSrvConttypeByIds(String[] srvCtcodes)
    {
        return srvConttypeMapper.deleteSrvConttypeByIds(srvCtcodes);
    }

    /**
     * 删除内容分类信息
     * 
     * @param srvCtcode 内容分类ID
     * @return 结果
     */
    @Override
    public int deleteSrvConttypeById(String srvCtcode)
    {
        return srvConttypeMapper.deleteSrvConttypeById(srvCtcode);
    }
}
